@import "@/style/var.less";

.home-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  overflow: auto;
  align-items: center;
  background: url("~assets/reverse/index-mask.png") center/100% 100% no-repeat;
  box-sizing: border-box;
  background-size: cover;
  .home-content {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 15px 0 25px;
    background: #fff;
    box-shadow: 0px 3px 30px rgba(22, 131, 18, 0.16);
    opacity: 0.8;
    border-radius: 20px;

    .back-arrow {
      position: absolute;
      left: 30px;
      top: 30px;
      font-size: 24px;
      width: 30px;
      height: 27px;
      background-image: url("~assets/home/btn_back.png");
      background-size: 100%;
      cursor: pointer;
    }
    .home-head {
      margin-bottom: 15px;

      .checkcourse-title {
        span {
          cursor: pointer;
        }
        .no-rem-fontsize(20px);
      }
    }
  }

  .home-center {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
  }

  .study-check {
    position: relative;
    width: 560px;
    height: 560px;

    .rotate-wrap {
      position: relative;
      height: 100%;
      width: 100%;
      transform: translate3d(0,0,0);
      animation: step1 35s linear infinite;
      &.animat-step1 {
        animation-duration: .6s;
      }
    }

    .grid-circle {
      position: absolute;
      border-radius: 50%;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(0);
      color: #fff;
      text-align: center;
      font-family: Microsoft YaHei;
      font-weight: bold;
      border: 1px dashed #dddddd;
    }

    .check-start {
      position: absolute;
      width: 170px;
      height: 170px;
      border-radius: 100%;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-image: url("~assets/reverse/index-start.png");
      background-size: cover;
      color: #fff;
      font-weight: bold;
      font-size: 33px;
      line-height: 170px;
      cursor: pointer;
      animation: step2 2s linear infinite;
    }

    .grid-circle1 {
      width: 560px;
      height: 560px;
    }

    .grid-circle2 {
      width: 460px;
      height: 460px;
    }

    .grid-circle3 {
      width: 360px;
      height: 360px;
    }

    .grid-circle4 {
      width: 260px;
      height: 260px;
    }

    .reverse-star {
      position: absolute;
      cursor: pointer;
      animation: step1Text 35s linear infinite;
      &.animat-step1 {
        animation-duration: .6s;
      }

      img {
        width: 100%;
        height: 100%;
      }

      span {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 16px;
        color: #fff;
        font-weight: bold;
      }
      &.reverse-star1 {
        span {
          left: 54%;
          top: 50%;
        }
      }
      &.reverse-star2 {
        span {
          left: 55%;
          top: 51%;
        }
      }
      &.reverse-star3 {
        span {
          left: 49%;
          top: 50%;
        }
      }
      &.reverse-star4 {
        span {
          left: 55%;
          top: 50%;
        }
      }

      // right: 0;
    }

    .reverse-star1 {
      width: 91px;
      height: 81px;
      right: 23px;
      top: 94px;
    }

    .reverse-star2 {
      width: 88px;
      height: 68px;
      right: 91px;
      bottom: 59px;
    }

    .reverse-star3 {
      width: 77px;
      height: 66px;
      left: 106px;
      top: 129px;
    }

    .reverse-star4 {
      width: 57px;
      height: 55px;
      left: 44px;
      bottom: 134px;
    }
  }

  .study-left,
  .study-right {
    position: relative;
    width: 288px;
    height: 288px;
    background-color: #e6f7ff;
    border-radius: 100%;
    font-family: Klavika;

    p {
      position: absolute;
      border-radius: 10px;
      padding: 4px 16px;
      font-size: 12px;

      span {
        display: block;
        i {
          font-style: normal;
          font-size: 12px;
        }
        &:nth-child(1) {
          font-size: 18px;
          font-weight: bold;
        }
      }
    }
  }

  .study-left {
    margin-left: -144px;

    p {
      &:hover {
        background-color: #d4eefa;
      }
    }
    p:nth-child(1) {
      right: 40px;
      top: 60px;
    }

    p:nth-child(2) {
      right: 40px;
      bottom: 60px;
    }
  }

  .study-right {
    margin-right: -144px;

    p:nth-child(1) {
      left: 40px;
      top: 60px;
    }

    p:nth-child(2) {
      left: 40px;
      bottom: 60px;
    }
  }

  .home-bottom {
    padding: 0 60px;
    display: flex;
    font-size: 20px;
    justify-content: space-between;
  }
  @keyframes step1 {
    0% {
      transform: rotate(0);
    }

    100% {
      transform: rotate(360deg);
    }
  }
  @keyframes step1Text {
    100% {
      transform: rotate(-360deg);
    }
  }
  @keyframes step2 {
    0% {
      transform: translate(-50%, -50%) scale(1);
    }
    50% {
      transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
      transform: translate(-50%, -50%) scale(1);
    }
  }
  @media screen and (min-width: 1620px) {
    .home-content {
      width: 1300px;
      height: 750px;
      padding: 25px 0;
    }
    .study-check {
      width: 560px;
      height: 560px;
      .grid-circle1 {
        width: 560px;
        height: 560px;
      }

      .grid-circle2 {
        width: 460px;
        height: 460px;
      }

      .grid-circle3 {
        width: 360px;
        height: 360px;
      }

      .grid-circle4 {
        width: 260px;
        height: 260px;
      }
      .check-start {
        width: 170px;
        height: 170px;
        line-height: 170px;
      }
      .reverse-star1 {
        width: 91px;
        height: 81px;
        right: 23px;
        top: 94px;
      }

      .reverse-star2 {
        width: 88px;
        height: 68px;
        right: 91px;
        bottom: 59px;
      }

      .reverse-star3 {
        width: 77px;
        height: 66px;
        left: 106px;
        top: 129px;
      }

      .reverse-star4 {
        width: 57px;
        height: 55px;
        left: 44px;
        bottom: 134px;
      }
    }
  }
  @media screen and (min-width: 1200px) and (max-width: 1620px) {
    .home-content {
      width: 1150px;
      height: 650px;
      padding: 22px 0;
    }
    .study-check {
      width: 486px;
      height: 486px;
      .grid-circle1 {
        width: 486px;
        height: 486px;
      }

      .grid-circle2 {
        width: 406px;
        height: 406px;
      }

      .grid-circle3 {
        width: 326px;
        height: 326px;
      }

      .grid-circle4 {
        width: 246px;
        height: 246px;
      }
      .check-start {
        width: 138px;
        height: 138px;
        line-height: 138px;
        font-size: 25px;
      }
      .reverse-star1 {
        width: 80px;
        height: 70px;
        right: 19px;
        top: 81px;
      }

      .reverse-star2 {
        width: 77px;
        height: 60px;
        right: 78px;
        bottom: 50px;
      }

      .reverse-star3 {
        width: 68px;
        height: 59px;
        left: 91px;
        top: 112px;
      }

      .reverse-star4 {
        width: 50px;
        height: 47px;
        left: 38px;
        bottom: 116px;
      }
    }
  }
  @media screen and (max-width: 1200px) {
    .home-content {
      width: 900px;
      height: 500px;
    }
    .study-check {
      width: 354px;
      height: 354px;
      .grid-circle1 {
        width: 354px;
        height: 354px;
      }

      .grid-circle2 {
        width: 294px;
        height: 294px;
      }

      .grid-circle3 {
        width: 234px;
        height: 234px;
      }

      .grid-circle4 {
        width: 174px;
        height: 174px;
      }
      .check-start {
        width: 102px;
        height: 102px;
        line-height: 102px;
        font-size: 19px;
      }
      .reverse-star1 {
        width: 57px;
        height: 50px;
        right: 10px;
        top: 60px;
      }

      .reverse-star2 {
        width: 57px;
        height: 44px;
        right: 57px;
        bottom: 37px;
      }

      .reverse-star3 {
        width: 49px;
        height: 42px;
        left: 67px;
        top: 82px;
      }

      .reverse-star4 {
        width: 36px;
        height: 34px;
        left: 28px;
        bottom: 85px;
      }
    }
  }
}

@media screen and (min-width: 1620px) {
  .home-wrap {
    min-height: 750px;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1620px) {
  .home-wrap {
    min-height: 650px;
  }
}

@media screen and (max-width: 1200px) {
  .home-wrap {
    min-height: 600px;
  }
}
